import { StrictMode, Suspense } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import { RouterProvider } from 'react-router-dom'
import routes from './router/index.tsx'
import './lang/i18n.tsx'
createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <Suspense fallback={<div>Loading...</div>}>
    <RouterProvider router={routes}/>
    </Suspense>
  </StrictMode>,
)
